/*
 * Su-yun Information Technology, Co.,Ltd CONFIDENTIAL
 *
 * (C) Copyright Su-yun Information Technology, Co.,Ltd. 2021 All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains the property of
 * Su-yun Information Technology, Co.,Ltd. The intellectual property herein
 * are protected by trade secret, patent law or copyright law. Dissemination
 * of this information or reproduction of this material is strictly forbidden
 * unless prior written permission is obtained from Su-yun Information Technology.
 *
 * https://suyunplat.com/
 *
 */
package com.xtiim.battery.discharge.protocal;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Arrays;

@Setter
@Getter
@EqualsAndHashCode
public class StatusRecord {
    private int line;
    private double[] voltsOfLines;

    public StatusRecord(int line, double[] voltsOfLines) {
        this.line = line;
        this.voltsOfLines = voltsOfLines;
    }

    @Override
    public String toString() {
        return new StringBuilder()
                .append("line: " + line + ", ")
                .append("volts: " + Arrays.toString(voltsOfLines)).toString();
    }

}
